<!DOCTYPE HTML>
<html>
    <head lang="zh-CN">
        <meta charset="UTF-8">
        <title>享点小说（账户余额）</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <!-- 设置初始缩放比例为1.0，使用设备宽度  -->
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
        <!-- 在iOS下开启全屏模式  -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <!-- 隐藏 Sarafi 状态栏  -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link href="/public/img/images/icon/xd.ico" rel="shortcut icon" />
        <link href="/public/css/comment/wapReset.css" rel="stylesheet"/>
        <link rel="stylesheet" type="text/css" href="/public/css/myMoney.css">
        <script src="/public/js/rem/rem.js"></script>
    </head>
    <body scroll="no">
        <div id="wrapper">
            <ul>
                <li>
                    <header>
                        <h2>
                            <img src="/public/img/images/tabbar-back1.png">
                            阅币余额
                        </h2>
                        <h1><?php echo intval($data['info']['user_balance']);?></h1>
                        <div>去充值</div>
                    </header>
                </li>
                <li>
                    <nav>
                        <li class="active">
                            充值记录
                        </li>
                        <li>
                            消费记录
                        </li>
                    </nav>
                </li>
                <li class="report" date-init="充值记录">
                    <?php if(empty($data['recharge'])):?>
                        <div>
                            <img src="/public/img/images/no-buy.png">
                            <p>暂无充值记录</p>
                        </div>
                    <?php else:?>
                        <ul>
                            <?php foreach($data['recharge'] as $r):?>
                                <li>
                                    <div>
                                        <p><?php echo $r['pay_type'];?>充值</p>
                                        <a href="javascript:;"><?php echo date('Y-m-d H:i',strtotime($r['pay_time']));?></a>
                                    </div>
                                    <div>
                                        <?php echo intval($r['read_coin']);?>阅币
                                    </div>
                                </li>
                            <?php endforeach;?>
                        </ul>
                    <?php endif;?>
                </li>
                <li class="report" date-init="消费记录">
                    <?php if(empty($data['consume'])):?>
                        <div style="display: block;">
                            <img src="/public/img/images/no-buy.png">
                            <p>暂无消费记录</p>
                        </div>
                    <?php else:?>
                        <ul>
                            <?php foreach($data['consume'] as $c):?>
                                <li>
                                    <div>
                                        <p><?php echo $c['novel'];?></p>
                                        <a href="javascript:;"><?php echo date('Y-m-d H:i',strtotime($c['pay_time']));?></a>
                                    </div>
                                    <div>
                                        -<?php echo intval($c['pay_coin']);?>阅币
                                    </div>
                                </li>
                            <?php endforeach;?>
                        </ul>
                    <?php endif;?>
                </li>
            </ul>



        </div>
    </body>
    <script type="text/javascript" src="/public/js/jquery1.7.2.js"></script>
    <script type="text/javascript" src="/public/js/iscroll.js"></script>
    <script type="text/javascript" src="/public/js/myMoney.js"></script>
</html>
